﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Deflection
{
    public class MenuItemEvent
    {
        public delegate void OnSelectEventHandler(string selected);
        public event OnSelectEventHandler Selected;

        private string text;

        public string SelectIt
        {
            get { return this.text; }
            set
            {
                this.text = value;
                if (this.Selected != null)
                    this.Selected(value);
            }
        }

        public MenuItemEvent()
        {
        }

        public void Hit()
        {
            if (this.Selected != null)
                this.Selected("test");
        }
    }
}
